package com.wzx.user.service;

import com.wzx.common.exception.LeadNewsException;
import com.wzx.user.dto.RelationDto;
import com.wzx.user.pojo.Relation;
import com.wzx.user.vo.GroupChangeRemarkVo;
import com.wzx.user.vo.RelationVo;

import java.util.List;

/**
 * @author wzx
 * @version 1.0
 * @date 2022/7/31 - 15:40
 * @description 标题
 */
public interface RelationService {
    List<RelationDto> getRelationList(Integer userId, Integer relationType);

    Relation queryRelationState(Integer userId, Integer friendId);

    void changeState(Relation relation);

    String queryFriendRemarks(Relation relation) throws LeadNewsException;

    String updateFriendRemarks(Relation relation);

    void deleteFriendRemarks(Relation relation) throws LeadNewsException;

    void changeRemarksByGroup(GroupChangeRemarkVo groupChangeRemarkVo);

    Boolean queryIsRelation(Integer userId, Integer friendId);

    void addBlackUser(Integer userId, Integer friendId,String changeType);

    String queryIsBlack(Integer userId, Integer friendId) throws LeadNewsException;

    List<Relation> queryAllUserFriendRemarks(Integer userId);

    List<RelationDto> getRelationListBySearch(RelationVo relationVo);
}
